﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="fluxoCaixa.aspx.cs" Inherits="Imobitech.Gestao.fluxoCaixa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<a id="A1" runat="server">Cadastro Contas a Pagar</a> <br />
    <a id="A2" runat="server">Cadastro Contas a Receber</a> <br />
    <fieldset>
        <div class="clearfix">
            <label>
                Mês:
            </label>
            <div class="input">
                <asp:TextBox ID="txtMes" runat="server" CssClass="xlarge" />
            </div>
        </div>
        <div class="clearfix">
            <label>
                Ano:
            </label>
            <div class="input">
                <asp:TextBox ID="txtAno" runat="server" CssClass="xlarge" />
            </div>
        </div>
        <div class="clearfix">
            <label>
                Mês:
            </label>
            <div class="input">
                <asp:DropDownList ID="ddlCategoria" runat="server" CssClass="xlarge" />
            </div>
        </div>
        <div class="clearfix">
            <div class="input">
                <asp:Button ID="btnBuscar" runat="server" Text="Buscar" OnClick="btnBuscar_Click" />
            </div>
        </div>
    </fieldset>
    <asp:Label Text="Contas a Pagar" ID="lblPagar" runat="server"></asp:Label>
    <asp:GridView ID="gdvFluxo" runat="server" AutoGenerateColumns="False" BackColor="#f2f2f2"
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="Id"
        ForeColor="Black" GridLines="Vertical" OnRowDataBound="gdvFluxo_RowDataBound">
        <FooterStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="Cód" ReadOnly="True" SortExpression="Id"
                InsertVisible="False" HeaderStyle-Width="10px" Visible="false" />
            <asp:BoundField DataField="descricao" HeaderText="Nome" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="valor" HeaderText="Valor" HeaderStyle-Width="200px" SortExpression="Nome"
                ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela" DataFormatString="{0:c}">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="vencimento" HeaderText="Vencimento" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela" dataformatstring="{0:MM/dd/yy}">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="pago" HeaderText="Pago" ReadOnly="True" SortExpression="Id"
                 HeaderStyle-Width="10px"  />
            <asp:TemplateField HeaderText="Pago">
                <ItemTemplate>
                    <asp:Image ID="imagePago" runat="server"></asp:Image>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="Ver Pagamento" ItemStyle-HorizontalAlign="Center"
                Text="&lt;img src='../imagens/ico_editar.gif' border='0' alt='Alterar'&gt;" DataNavigateUrlFields="Id"
                DataNavigateUrlFormatString="../Gestao/ContasPagar.aspx?Id={0}" />
        </Columns>
        <PagerStyle BackColor="#3b5985" ForeColor="white" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#9dacc2" ForeColor="White" />
        <HeaderStyle BackColor="#3b5985" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#e5e5e5" />
    </asp:GridView>
    <asp:Label Text="Contas a Receber" ID="lblReceber" runat="server"></asp:Label>
    <asp:GridView ID="gdvReceber" runat="server" AutoGenerateColumns="False" BackColor="#f2f2f2"
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="Id"
        ForeColor="Black" GridLines="Vertical" OnRowDataBound="gdvFluxo_RowDataBound">
        <FooterStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="Cód" ReadOnly="True" SortExpression="Id"
                InsertVisible="False" HeaderStyle-Width="10px" Visible="false" />
            <asp:BoundField DataField="descricao" HeaderText="Nome" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="valor" HeaderText="Valor" HeaderStyle-Width="200px" SortExpression="Nome"
                ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela" DataFormatString="{0:c}"> 
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="vencimento" HeaderText="Vencimento" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela" dataformatstring="{0:MM/dd/yy}">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="pago" HeaderText="Pago" ReadOnly="True" SortExpression="Id"
                 HeaderStyle-Width="10px" />
            <asp:TemplateField HeaderText="Pago">
                <ItemTemplate>
                    <asp:Image ID="imagePago" runat="server"></asp:Image>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="Ver Pagamento" ItemStyle-HorizontalAlign="Center"
                Text="&lt;img src='../imagens/ico_editar.gif' border='0' alt='Alterar'&gt;" DataNavigateUrlFields="Id"
                DataNavigateUrlFormatString="../Gestao/contasReceber.aspx?Id={0}" />
        </Columns>
        <PagerStyle BackColor="#3b5985" ForeColor="white" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#9dacc2" ForeColor="White" />
        <HeaderStyle BackColor="#3b5985" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#e5e5e5" />
    </asp:GridView>
</asp:Content>
